package com.wangsai.framework.supersecurity.core.crypto;


import cn.hutool.core.codec.Base64;

/**
 * @author Mr.Wang
 * @description
 * @date 2021-10-16 17:25
 */
public class Base64UserSecure implements UserSecure {

    @Override
    public String encode(CharSequence source) {
        return Base64.encode(source);
    }

    @Override
    public String decode(CharSequence source) {
        return Base64.decodeStr(source);
    }
}